package com.yexiao.cofe.business.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yexiao.cofe.business.pojo.ParamTemplate;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ParamTemplateMapper extends BaseMapper<ParamTemplate> {

    @Select("select * from param_template where store_id = #{storeId} and name = #{name}")
    ParamTemplate selectParamTemplateByStoreIdAndName(@Param("storeId") String storeId, @Param("name") String name);

    List<ParamTemplate> listByStoreId(@Param("storeId") String storeId, @Param("name") String name);

    void modifyTemplate(@Param("id") int id, @Param("name") String name, @Param("description") String description);
}
